package _9练习;
public class Parrot extends Animal{

	@Override
	public void eat() {
		
		System.out.println(age+"岁的"+color+"鹦鹉在吃小米");
	}
	
	
	public void say() {
		System.out.println(age+"岁的"+color+"鹦鹉在说你好");
	}
	
	
	public Parrot(String color,int age)
	{
		this.color=color;
		this.age=age;
	}
	
	public Parrot() {
		
	}

}
